Project(QtTutorial5)
Project(QtTutorial5)

INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})

FILE(GLOB_RECURSE QtTutorial5_moc_srcs ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
FILE(GLOB_RECURSE QtTutorial5_moc_hdrs ${CMAKE_CURRENT_SOURCE_DIR}/*.h)

QT4_WRAP_CPP(QtTutorial5_moc_srcs ${QtTutorial5_moc_hdrs})

ADD_LIBRARY(QtTutorial5 SHARED ${QtTutorial5_moc_srcs} ${QtTutorial5_moc_hdrs})

TARGET_LINK_LIBRARIES(QtTutorial5 ${APP_LIBRARIES_WINDOWS} debug Blobz_d.lib optimized Blobz.lib ${QT_LIBRARIES})

SET_TARGET_PROPERTIES(QtTutorial5 PROPERTIES SUFFIX ".nui")

IF(WIN32)
	INSTALL(TARGETS QtTutorial5 RUNTIME DESTINATION ${NUI_APP_DIR}/QtTutorial5 )
ELSE(WIN32)
	INSTALL(TARGETS QtTutorial5 LIBRARY DESTINATION ${NUI_APP_DIR}/QtTutorial5 )
ENDIF(WIN32)
 
FILE(GLOB SOURCE_GROUP_FILES ${CMAKE_CURRENT_SOURCE_DIR}/Utils/*)
SOURCE_GROUP(Utils FILES ${SOURCE_GROUP_FILES})

SOURCE_GROUP(AutoGen REGULAR_EXPRESSION ${CMAKE_CURRENT_BINARY_DIR}.*\\.cxx$)
  